package seabattle.ship;

public enum Direction {
    VERTICAL, HORIZONTAL;

    public boolean isVertical() {
        return this.equals(VERTICAL);
    }

    public static Direction getRandom() {
        return ((int) (Math.random() * 2) == 0) ? Direction.VERTICAL : Direction.HORIZONTAL;
    }


}

